package com.topscomm.base.job;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.topscomm.base.service.IBaseFlowFileService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;

/**
 * @description:文件信息同步
 * @author: lishuming
 * @date: 2021年1月18日上午10:55:07
 * @modify:
 */
@JobHandler(value = "mcrBaseFlowFileSyncJob")
@Component
public class BaseFlowFileSyncJob extends IJobHandler {
	@Autowired
	IBaseFlowFileService baseFlowFileService;

	@Override
	public ReturnT<String> execute(String param) throws Exception {
		baseFlowFileService.baseFlowFileSync();
		return ReturnT.SUCCESS;
	}
}
